﻿@model RegisterModel

@{
    ViewBag.Title = @Strings.Account_Register;
}

@using (Html.BeginForm())
{                
    <fieldset class="shaded">
        <legend>@Strings.Account_Register</legend>
        <p>@String.Format(Strings.Account_PasswordMinLength, 5)</p>
        @Html.ValidationSummary(true, Strings.Validation_PleaseCorrectErrors)
        <div class="editor-label">
            <label for="Email">@Strings.Email</label>
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(m => m.Email, new { size = 40 })
            @Html.ValidationMessageFor(m => m.Email)
        </div>
        <div class="editor-label">
            <label for="FirstName">@Strings.FirstName</label>
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(m => m.FirstName)
            @Html.ValidationMessageFor(m => m.FirstName)
        </div>
        <div class="editor-label">
            <label for="LastName">@Strings.LastName</label>
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(m => m.LastName)
            @Html.ValidationMessageFor(m => m.LastName)
        </div>
        <div class="editor-label">
            <label for="Password">@Strings.Password</label>
        </div>
        <div class="editor-field">
            @Html.PasswordFor(m => m.Password)
            @Html.ValidationMessageFor(m => m.Password)
        </div>
        <div class="editor-label">
            <label for="ConfirmPassword">@Strings.Account_ConfirmPassword</label>
        </div>
        <div class="editor-field">
            @Html.PasswordFor(m => m.ConfirmPassword)
            @Html.ValidationMessageFor(m => m.ConfirmPassword)
        </div>
        <div id="buttons">
            <input type="submit" value="@Strings.Account_Register" />
            @Html.CancelButton("Index", "Post")
        </div>
    </fieldset>
}
